package com.ultron.demo;

import com.ultron.common.constant.PackageConstant;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@Slf4j
@EnableDiscoveryClient
@SpringBootApplication
@MapperScan(PackageConstant.MAPPER_ULTRON_DEMO)
@ComponentScan(basePackages = {PackageConstant.BASE_ULTRON_CORE,PackageConstant.BASE_ULTRON_DEMO})
@EnableFeignClients(PackageConstant.BASE_ULTRON_CORE)
public class UltronDemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(UltronDemoApplication.class, args);
        log.info("=======================demo中心启动成功=======================");

    }

}
